package com.frinder.wx.base.api.tuling;

import com.frinder.wx.base.api.tuling.callback.TuLingServiceFallbackFactory;
import com.frinder.wx.base.api.tuling.payload.TuLingRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @ClassName ITuLingService
 * @Description //TODO
 * @Author frinder
 * @Date 2018/12/6 14:45
 * @Version 1.0
 */
@FeignClient(name = "tuLingService", url = "http://openapi.tuling123.com/openapi", fallbackFactory = TuLingServiceFallbackFactory.class)
public interface ITuLingService {

    /**
     * @Author frinder
     * @Description 调用图灵API
     * @Date 2018/12/6 14:59
     * @Param [request]
     * @Return java.lang.Object
     */
    @RequestMapping(value = "/api/v2", method = RequestMethod.POST)
    String v2(@RequestBody TuLingRequest request);

}
